﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Acms.Bll;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        if (!IsPostBack)
        { 
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {   
    }

    protected Acms.AcmsControls.TemplatePage AcmsPage
    {
        get
        {
            return (Acms.AcmsControls.TemplatePage)this.Page;
        }
    }

    private bool RequresDataBinding = true;
    public override void DataBind()
    {
        RequresDataBinding = false;
        base.DataBind();
    }

    protected override void OnPreRender(EventArgs e)
    {
        if (!IsPostBack && RequresDataBinding)
        {
            DataBind();
        }
        base.OnPreRender(e);
    }
}